// tuple元组：多种元素的组合
// "pengfan" 18 1.88

// 1.数组的弊端
// const info: any[] = ["pengfan",21,1.88];
// const infoObj = {
//   name: "pengfan",
//   age: 21,
//   height: 1.88
// }

// const name = info[0];
// console.log(name.length)

// 2.元组的特点
const info: [string,number,number] = ["pengfan",21,1.88];
const name =  info[0];
console.log(name.length);
const age = info[1];
// console.log(age.length)



export {}